home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software USA 4 #8
/
Software USA Volume 4.08.iso
/
mac
/
Education
/
AreaProperties
/
Read Me - Area Properties 3.4
< prev
Wrap
Text File
|
1997-05-31
|
7KB
|
130 lines
What is "Area Properties" and what does it do ?
It will do the following;
It will calculate and measure the following properties of any object you load
from a PICT or PNT document; (Objects can also be imported from the Clipboard.)
1. CROSS SECTIONAL AREA
2. TOTAL SURFACE AREA
3. TOTAL PERIMETER
4. MOMENT OF INERTIA about the centroidal axis & any axis
5. PRODUCT OF INERTIA about the centroidal axis & any axis
6. RADIUS OF GYRATION
7. VOLUME
8. WEIGHT
9. MEASURE HEIGHT & WIDTH
10 PROVIDES RULER TO OBTAIN LENGTH MEASUREMENTS
11 WILL COLLAPSE OBJECT ON BOTH X & Y AXIS
12 COUNTS TOTAL OBJECT PIXELS
The object itself and the UNITS, DEPTH, SCALE & MATERIAL are user inputs. They
can be made the defaults with the Preferences... menu item.
SCALE is defined as actual object size divided by screen size. (If actual object width
is 12 inches and screen image width of object is 1 inch, the SCALE = 12.)
Portions of the screen object can be isolated by using shift-click-drag to select only
the portion of the object that is of interest. Place the cursor at the upper left corner
of region of interest and shift-click-drag to lower right corner of interest.
The results can be saved to disk as a PICT file.
NOMENCLATURE:
x - x coordinate.(horizontal axis
x centroid - x coordinate of the center of area of a homogeneous plate.
y - y coordinate.(vertical axis)
y centroid - y coordinate of the center of area of a homogeneous plate.
r - square root of (x^2 + y^2).
I_xcg - moment of inertia of area section re. x centroidal axis.
I_x - moment of inertia of area section re. x axis.
I_ycg - moment of inertia of area section re. y centroidal axis.
I_y - moment of inertia of area section re. y axis.
J_cg polar - polar moment of inertia of area section re. centroidal axis.
J_r - polar moment of inertia of area section re. centroidal origin.
P_xycg - product of inertia of area section re. x, y centroidal axis.
P_xy - product of inertia of area section re. x, y axis origin.
k_xcg - radius of gyration of area section re. x centroidal axis.
k_ycg - radius of gyration of area section re. y centroidal axis.
k_cg polar - polar radius of gyration of area section re. centroidal axis.
NOTES:
1 All BLACK or dark pixels are considered included in the object.
Objects must be filled in (do not use hollow or outlined shapes).
All WHITE or light colored pixels are void. USE the provided MENU
selection "MAKE ALL COLORS BLACK" or "COLOR EDITOR" to convert a
colored object to BLACK prior to starting any calculations.
2 The apple CONTROL STRIP (control panel) or any other 3rd party floating
windoid must be turned off or made invisible so as to not be included
as part of your object.
3 The minor jagged edges of an image will be corrected. All screen images are
made with square pixels making a perfect circle impossible to draw. One pixel
jaggies will be corrected, but larger jaggies will go uncorrected. This is why
the Area Properties calculated area of a 4" diameter circle screen image will
not equal the exact 12.567 in^2, but will be 12.54 in^2 instead. The same goes
for perimeter calculations.
Who might find this application of value ?
1. Engineers
2. Scientists
3. Students
4. Architects
coded by: William Weiss
2500 Ptarmigan Dr.#1
Walnut Creek, CA. 94595
USA
email address: WWeissTuna@AOL.com
Comments and suggestions are always welcomed. If you use this code a lot, please make
a donation to your favorite charity, Thanks & I will look forward to your email .
/* -------------------------------------------------------------------------------------------- */
Version 3.4 (6/98)
• Results can be viewed in either standard or scientific notation. See Number Format
menu item under File Menu.
• Added calculation of Product of Inertia.
/* -------------------------------------------------------------------------------------------- */
Version 3.3 (2/98)
• Added image flip (horizontal & vertical) ability. AP Menu
• Image collapse function (AP Menu) will first convert all image colors to black.
• Fixed printing bug under Mac OS 8.1
• Preferences... menu item will now be enabled after a (Edit menu) paste operation.
/* -------------------------------------------------------------------------------------------- */
Version 3.2 (4/97)
• Preferences... menu item (File Menu) can now save default units, material, object scale
and object depth.
• Save As... menu item (File Menu) can save results as a PICT file to disk.
• Maximum screen size that can be accommodated is now 1280 x 1280 pixels.
• Will now work with a MATROX Millennium video card.
• Added water to list of materials.
• Just For Fun menu item will do 3D stuff if screen color set to thousands or millions
or if greyscale (Monitors and Sound CONTROL PANEL).
• Fixed a bug with the Shift Click Drag selection routine.
• Images imported via the clipboard (Pasted) will be centered on the screen.
/* -------------------------------------------------------------------------------------------- */
Version 3.0 (11/96) has added radius of gyration. Also added COLOR EDITOR, which will
allow selected colors of a color image to be converted to BLACK or deleted or isolated.
Also added some fun stuff.
/* -------------------------------------------------------------------------------------------- */
Version 2.6 now is PPC/68K FAT and uses the Metrowerks C/C++ compiler. Also fixed a bug
in the "MAKE ALL COLORS BLACK" routine.